//
//  LCSettingController.m
//  YiJun
//
//  Created by liangrongchang on 2017/4/17.
//  Copyright © 2017年 Rochang. All rights reserved.
//

#import "LCSettingController.h"
#import "LCSettingView.h"
#import "LCInputView.h"
#import "LCAlertPickerView.h"
#import "LCMapViewController.h"
#import "BluetoothCenter.h"
#import "LCTableView.h"
#import "LCCheckView.h"
@interface LCSettingController ()<LCSettingViewDelegatee>

@property (nonatomic, strong) LCSettingView *setView;

@end

@implementation LCSettingController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = Language(@"设置");
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.view.backgroundColor = LCBgColor;
    [self setupUI];
}

- (void)setupUI {
    UIImageView *imageView = [[UIImageView alloc] initWithImage:Image(@"图层")];
    imageView.frame = CGRectMake(0, 0, self.view.LC_width, 150);
    [self.view addSubview:imageView];
    
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 150, self.view.LC_width, self.view.LC_height-65)];
    scrollView.backgroundColor = LCBgColor;
    [self.view addSubview:scrollView];
    self.setView = [LCSettingView getLCSettingView];
    self.setView.delegate = self;
    self.setView.frame = CGRectMake(0, 0, self.view.LC_width, 670);
    [scrollView addSubview:self.setView];
    scrollView.contentSize = CGSizeMake(0, 770);
}

#pragma mark - LCSettingViewDelegatee

- (void)rutoDidClick:(id)sender {
    LCMapViewController *vc = [[LCMapViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}


@end
